jQuery(document).ready(function() {
	//	$('#commuway').on('input propertychange',function(){
	//		console.log(this)
	//	});
	$('#subsubmit').click(function() {
		var commuway = $("#commuway").val();
		if(commuway.trim() == "") {
			alert("请输入您的联系方式")
		} else {
			var dataobject = {
				"commuway": commuway
			}
			$.ajax({
				type: "post",
				url: "http://47.74.156.26:8080/commu",
				dataType: "json",
				data: dataobject,
				success: function(data) {
					if(data == null) return;
					if(data.StateCode != "0000") {
						alert(data.ErrMsg)
						return;
					};
					$("#commuway").val("")
					alert("提交成功，请耐心等待客服联系")
				},
				error: function(e) {
					console.log(e);
				}
			});
		}
	});

});